package net.xdclass.feign;

import net.xdclass.request.LockCouponRecordRequest;
import net.xdclass.utils.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "xdclass-coupon-service")
public interface CouponFeignService {
    @GetMapping("/api/coupon_record/v1/detail/{record_id}")
    JsonData findUserCouponRecordById(@PathVariable("record_id") long recordId);

    @PostMapping("/api/coupon_record/v1/lock_records")
    JsonData lockCouponRecords(LockCouponRecordRequest lockCouponRecordRequest);
}
